<?php

namespace App\Models\Common;

use App\Traits\UuidTrait;
use Illuminate\Database\Eloquent\Model;

class ArchiveCatalog extends Model
{

    use UuidTrait;

    const TABLE = 'archive_catalog';
    protected $table = self::TABLE;

    public $timestamps = false;

    public static function hasInCatalog(string $itemName): bool
    {
        return self::whereName($itemName)->exists();
    }
}
